package org.wyf.EveryPoint.system.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.wyf.EveryPoint.system.entity.Dept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * @author MrBird
 */
public interface DeptMapper extends BaseMapper<Dept> {
    @Select("select dept_id from t_dept where parent_id = #{deptId}")
    List<Long> findDeptChilds(@Param("deptId") long deptId);
}
